/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
// 开发中
// const UnderConstruction = () => import('@/views/error-page/UnderConstruction');
const menus = [
  {
    path: 'article',
    name: 'Article',
    component: Layout,
    meta: { title: '文章管理', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/articleList',
        name: 'ArticleList',
        component: () => import('@/views/article/article'),
        meta: { title: '文章列表', icon: 'documentation', affix: true }
      },
      {
        path: '/articleEdit',
        name: 'ArticleEdit',
        hidden: true,
        component: () => import('@/views/article/components/addEdit'),
        meta: { title: '文章编辑', icon: 'dashboard', affix: true }
      },
      {
        path: '/articleEditor',
        name: 'ArticleEditor',
        hidden: true,
        component: () => import('@/views/articleEditor/articleEditor'),
        meta: { title: '文章编辑1', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: 'diary',
    name: 'Diary',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/diary',
        name: 'Diary',
        component: () => import('@/views/diary/diary'),
        meta: { title: '日记', icon: 'el-icon-tickets', affix: true }
      },
      {
        path: '/diaryAddEdit',
        name: 'AiaryAddEdit',
        hidden: true,
        component: () => import('@/views/diary/components/diaryAddEdit'),
        meta: { title: '日记编辑', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: 'category',
    name: 'Category',
    component: Layout,
    meta: { title: '标签', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/categoryList',
        name: 'CategoryList',
        component: () => import('@/views/category/category'),
        meta: { title: '标签管理', icon: 'el-icon-discount', affix: true }
      }
    ]
  },
  {
    path: 'resume',
    name: 'Resume',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/resumeAdmin',
        name: 'ResumeAdmin',
        component: () => import('@/views/resume/resume'),
        meta: { title: '简历管理', icon: 'el-icon-document', affix: true }
      }
    ]
  },
  {
    path: 'banner',
    name: 'Banner',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/banner',
        name: 'banner',
        component: () => import('@/views/banner/banner'),
        meta: { title: '轮播图', icon: 'el-icon-picture', affix: true }
      }
    ]
  },

  {
    path: 'Navigation',
    name: 'Navigation',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/Navigation',
        name: 'Navigation',
        component: () => import('@/views/Navigation/Navigation'),
        meta: { title: '导航', icon: 'el-icon-position', affix: true }
      }
    ]
  },
  {
    path: 'user',
    name: 'user',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/user',
        name: 'user',
        component: () => import('@/views/user/user'),
        meta: { title: '用户管理', icon: 'el-icon-s-custom', affix: true }
      }
    ]
  },
  {
    path: 'setUp',
    name: 'setUp',
    component: Layout,
    meta: { title: '', icon: 'el-icon-goods', roles: [] },
    children: [
      {
        path: '/setUp',
        name: 'setUp',
        component: () => import('@/views/setUp/setUp'),
        meta: { title: '网站设置', icon: 'el-icon-s-tools', affix: true }
      }
    ]
  }
]

export default menus
